<template>
  <div id="app">
    <data></data>
    <router-view></router-view>
    <alert v-show="isShow" @to-close="closeAlert"></alert>
  </div>
</template>

<script>
  import alert from '@/page/alert'
  import data from '@/components/dataHttp'
  export default {
    name: 'app',
    data(){
      return {
        isShow: true,
      }
    },
    components: {
      alert,

    },
    methods: {
      closeAlert(one){
        this.isShow = false
      }
    }
  }
</script>

<style>

  #app {
    width: 100vw;
    height: 100vh;
  }
</style>
